package com.mxdx.edu.enums;

import java.util.HashMap;
import java.util.Map;

/**
 * 工作性质
 * @author howie
 *
 */
public enum ExpectedJobNature {

	FULL_TIME_JOB("1", "全职"),
	PART_TIME_JOBS("2", "兼职"),
	INTERNSHIP("3", "实习")	
	;
	
	private String type;
	private String desc;
	
	private ExpectedJobNature(String type, String desc) {
		this.type = type;
		this.desc = desc;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}
	
	public static Map<String, ExpectedJobNature> getMap(){
		return EXPECTED_JOB_NATURE_MAP;
	}
	
	private static Map<String, ExpectedJobNature> EXPECTED_JOB_NATURE_MAP = new HashMap<>();
	static {
		EXPECTED_JOB_NATURE_MAP.put("1", FULL_TIME_JOB);
		EXPECTED_JOB_NATURE_MAP.put("2", PART_TIME_JOBS);
		EXPECTED_JOB_NATURE_MAP.put("3", INTERNSHIP);
	}
}
